package com.guchenbo.study.mvc.servlet31.springmvc.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class NoMvcServlet extends HttpServlet {
    @Override
    public void init() throws ServletException {
        System.out.println("init Nomvc Servlet");
    }

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("in Nomvc Servlet");
        resp.getWriter().write("Nomvc Servlet 3.0 ok");
    }
}
